package Services

import(
	"github.com/gin-gonic/gin"
	"net/http"
	"gin/Common"
)

// 宏观数据
func DisplayYeji(c *gin.Context) {
	code := c.Query("code")
	sql := Common.AttrV3Sql(Common.AttrV3_yeji)
	result,data := Common.GetV3Data(sql, code)
	if (!result) {
		c.JSON(http.StatusOK, gin.H{
	        "result": -1,
	        "msg":    "query fail",
	        "data": "{}",
	    })
		return
	}

	c.JSON(http.StatusOK, gin.H{
        "result": 0,
        "msg":    "success",
        "data": data,
    })
}

